package com.citicup.backend.service.FundService.FundComparator;

import com.citicup.backend.service.FundService.FundSortInfo;

import java.util.Comparator;

public class ManagerYearComp implements Comparator<FundSortInfo> {

    @Override
    public int compare(FundSortInfo o1, FundSortInfo o2) {
        //越大越好
        return -Integer.compare(o1.getFundInfo().getManagerYear(), o2.getFundInfo().getManagerYear());
    }
}